package com.qf.exceptions;

import com.qf.vo.ResultVO;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class GlobalException {

    @ExceptionHandler(AccessDeniedException.class)
    public ResultVO exception403(){
        return new ResultVO(false,"权限不足","403");
    }
}
